#ifndef AD_USERMGRLIST_H
#define AD_USERMGRLIST_H

#include <QWidget>

namespace Ui {
class AD_userMgrList;
}

class AD_userMgrList : public QWidget
{
    Q_OBJECT

public:
    explicit AD_userMgrList(QWidget *parent = nullptr);
    ~AD_userMgrList();

    void updateTabel();

    void setDataToTabel(const QList<DB_userInfo>& data);

    int getCurAccount();

private:
    Ui::AD_userMgrList *ui;

    QList<DB_userInfo> m_data;

    // QWidget interface
protected:
    virtual void showEvent(QShowEvent *event) override;
private slots:
    // 添加
    void on_pushButton_clicked();
    // 删除
    void on_pushButton_2_clicked();
    // 更新
    void on_pushButton_3_clicked();
};

#endif // AD_USERMGRLIST_H
